//引入createApp方法
import { createApp } from 'vue'
//引入根组件
import App from './App.vue'
//创建应用实例，并完成挂载
import router from "@/router"
import pinia from "./stores"
import Navbar from "@/components/Navbar/index.vue"
import Button from "@/components/Button/index.vue"
import DanceList from "@/components/DanceList/index.vue"
import FilterNav from "@/components/FilterNav/index.vue"
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import "@/mockServer"
const app = createApp(App)
//全局注册navbar逐渐
app.component("Navbar",Navbar)
app.component("Button",Button)
app.component("DanceList",DanceList)
app.component("FilterNav",FilterNav)

app.use(router).use(ElementPlus).use(pinia).mount('#app')
